<?php

class Balance_model extends ZY_Model {

	public $pri_column="id";

	

    public function __construct(){

        // Call the CI_Model constructor

        parent::__construct($this->pri_column);

    }

  	public function add(){

        $balance=$this->input->post('balance');

		$this->insert($balance);

    }



    public function edit($id){

        $balance=$this->input->post('balance');

		$this->update($balance, array('id='.$id));

    }

	// public function select(){

 //        // $query = $this->db->get('employee', 10);

 //        // return $query->result_array();

	// 	}



    

}